-- GENERATED SPELL FOR [Winterskorn Skald] --


function spell0_23657(pUnit, Event) --@Fire Ward,Self--
pUnit:FullCastSpellOnTarget(37844,pUnit)
pUnit:RegisterEvent('Sorts_23657', 30285, 1)
end

function spell1_23657(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(9053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23657', 3000, 1)
end

function spell2_23657(pUnit, Event) --@Flamestrike,n/a--
pUnit:FullCastSpellOnTarget(11829,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23657', 11000, 1)
end

function Sorts_23657(pUnit, Event)
local choix_sorts_23657 = math.random(0, 2)
if choix_sorts_23657 == 0 then
pUnit:RegisterEvent('spell0_23657', 1, 1)
end
if choix_sorts_23657 == 1 then
pUnit:RegisterEvent('spell1_23657', 1, 1)
end
if choix_sorts_23657 == 2 then
pUnit:RegisterEvent('spell2_23657', 1, 1)
end
end

function mob23657_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23657', math.random(1500, 3000), 1)
end

function mob23657_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23657_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23657_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23657, 1, 'mob23657_Action')
RegisterUnitEvent(23657, 2, 'mob23657_Leave')
RegisterUnitEvent(23657, 3, 'mob23657_Kill')
RegisterUnitEvent(23657, 4, 'mob23657_Die')
